package com.xy.work.template.app.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author niuniu
 * @Date: 2021/8/16 09:26
 * @Description:
 */
@ApiModel(value="LoginReq对象", description="登录请求实体类")
@Data
public class LoginReq {
    @NotBlank(message = "请填写登录手机号")
    @ApiModelProperty("登录手机号")
    private String phone;
    @ApiModelProperty("登录密码")
    private String password;
    @NotNull(message = "系统繁忙，请稍后再试")
    @ApiModelProperty("登录类型【1：手机号和密码登录，2：手机号和短信验证快捷登录】")
    private Integer loginType;
    @ApiModelProperty("登录验证码")
    private String code;
}
